import { observable , action } from 'mobx';

class Funnys {
    @observable
    protected historyArr: IGlobalTypes.IHistoryCard[];

    @observable
    protected detailArr: IGlobalTypes.IHistoryCard[];

    @observable
    protected historyCardId: string;

    @action
    protected setHistory = (historyArr: IGlobalTypes.IHistoryCard[]): void => {
        this.historyArr = historyArr;
    }

    @action
    protected setDetail = (detailArr: IGlobalTypes.IHistoryCard[],id: string): void => {
        this.detailArr = detailArr;
        this.historyCardId = id;
    }
}

export const Funny = new Funnys();